package tr.com.netgis.db;

import java.util.List;

import tr.com.netgis.pojo.LocalMessage;
import tr.com.netgis.pojo.Message;
import tr.com.netgis.pojo.NGLocation;

/**
 * 
 * @author NetGis
 *
 */
public interface IDbHelper {
	public void insert (NGLocation location);
	public void deleteAllLocations ();
	public void deleteLocation (int id);
	public void sendLocation (int id);
	public void sendLocation (int [] ids);
	public List<NGLocation> listUnsentLocations ();
	public long howManyLocations ();
	public boolean existsLocation (NGLocation location);
	
	public void insertMessage(Message message);
	public void insertMessage(List<Message> messages);

	public List<Message> listMessages();
	public void deleteAllMessages ();
	public void deleteMessage(int [] ids);
	public void deleteMessage (int id);
	public long howManyMessages ();

	public void insertLocalMessage(LocalMessage message);
	public void deleteAllLocalMessages ();
	public void deleteLocalMessage(int [] ids);
	public void deleteLocalMessage (int id);
	public long howManyLocalMessages ();
	
	
}
